﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
using Interfaces;

namespace Insteon
{
    [DataContract]
    [KnownType(typeof(Dimmer))]
    [KnownType(typeof(Switch))]
    [KnownType(typeof(Thermostat))]
    public class Device : IDevice
    {
        [DataMember]
        public string ID
        {
            get;
            set;
        }

        [DataMember]
        public string Name
        {
            get;
            set;
        }

        [DataMember]
        public string Location
        {
            get;
            set;
        }

        [DataMember]
        public string LastValue
        {
            get;
            set;
        }
    }
}
